package com.example.newYear.factory.itemFactory;

//药品道具类
public class Potion implements Item{
    private String name;
    public Potion(String name)
    {
        this.name = name;
    }
    
    @Override
    public void use()
    {
        System.out.println("使用" + name + "恢复生命值");
    }
}
